﻿using System;
using BLL.RF.Package;

public partial class ViewbyProduct_ViewPackage_ViewPackintoBox_BoxbyID : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindPackintoBoxItem();
        }
    }

    private void BindPackintoBoxItem()
    {
        PackintoBoxItem pbi = new PackintoBoxItem();
        if (Request.QueryString["ID"] != null)
        {
            int id = int.Parse(Request.QueryString["ID"].ToString());
            GridView1.DataSource = pbi.GetPackintoBoxItem_byID(id);
            GridView1.DataBind();
        }
    }
}
